import request from './request'

// 报表相关的API

// 营业额统计
export const getTurnoverStatisticsApi = (begin, end) => {
    return request.get('/api/admin/report/turnoverStatistics', {
        params: {
            begin,
            end
        }
    })
}

// 订单统计
export const getOrdersStatisticsApi = (begin, end) => {
    return request.get('/api/admin/report/ordersStatistics', {
        params: {
            begin,
            end
        }
    })
}

// 销量TOP10统计
export const getTop10Api = (begin, end) => {
    return request.get('/api/admin/report/top10', {
        params: {
            begin,
            end
        }
    })
}
